package com.teocom.vet;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Visit {
	
	@Id
	private Integer id;
	@Temporal(TemporalType.TIMESTAMP)
	private Date date;
	private String description;
	@ManyToOne
	@JoinColumn (name="visits_pet")
	private Pet pet;
	@ManyToOne
	@JoinColumn (name="visits_vet")
	private Vet vet;
	
	public Visit(){
		
	}

	public Visit(Integer id, Date date, String description, Pet pet, Vet vet) {
		super();
		this.id = id;
		this.date = date;
		this.description = description;
		this.pet = pet;
		this.vet = vet;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Pet getPet() {
		return pet;
	}

	public void setPet(Pet pet) {
		this.pet = pet;
	}

	public Vet getVet() {
		return vet;
	}

	public void setVet(Vet vet) {
		this.vet = vet;
	}
}
